package com.grf.controller;

import com.grf.service.TicketService;
import com.grf.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ConsumerController {

    @Autowired
    TicketService ticketService;

    @ResponseBody
    @RequestMapping("/test")
    public User test() {
        return ticketService.buy();
    }

}
